package com.llxz.blog.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.llxz.blog.acl.entity.UserRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @author xzs
 * @description: date: 2021/9/4 9:24
 */
@Transactional
public interface UserRoleService extends IService<UserRole> {

    Map<String, Object> findRoleByUserId(String userId);

    void assignRoles(String userId, String[] roleIds);
}

